package cn.kgc.api.form;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

@Data
@ApiModel
public class UsersUpdateForm implements Serializable {


    /**
     * id
     */
    @ApiModelProperty(name = "user_id", value = "id", dataType = "java.lang.Integer")
    private Integer userId;


    /**
     * 名字
     */
    @ApiModelProperty(name = "user_name", value = "名字", dataType = "java.lang.String")
    private String userName;


    /**
     * 邮箱
     */
    @ApiModelProperty(name = "user_email", value = "邮箱", dataType = "java.lang.String")
    private String userEmail;


    /**
     * 手机号
     */
    @ApiModelProperty(name = "mobile", value = "手机号", dataType = "java.lang.String")
    private String mobile;


    /**
     * 性别(1男 2 女)
     */
    @ApiModelProperty(name = "sex", value = "性别(1男 2 女)", dataType = "java.lang.Integer")
    private Integer sex;


    /**
     * 部门id
     */
    @ApiModelProperty(name = "dept_id", value = "部门id", dataType = "java.lang.Integer")
    private Integer deptId;


    /**
     * 工作
     */
    @ApiModelProperty(name = "job", value = "工作", dataType = "java.lang.String")
    private String job;


    /**
     * 状态
     */
    @ApiModelProperty(name = "state", value = "状态", dataType = "java.lang.Integer")
    private Integer state;


    /**
     * 角色ID
     */
    @ApiModelProperty(name = "role_id", value = "角色ID", dataType = "java.lang.Integer")
    private Integer roleId;


    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    /** 最近一次登录时间 */
    @ApiModelProperty(name = "last_login_time", value = "最近一次登录时间", dataType = "java.util.Date")
    private Date lastLoginTime;


}
